﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;
using BusinnessLogic;
using DataLayer;

namespace scrumbench
{
    public partial class NewProduct : Form
    {
        public NewProduct()
        {
            InitializeComponent();
        }

        private string naam;

        public string Naam
        {
            get { return naam; }
            set { naam = value; }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            naam=textBox1.Text;

            InsertProduct inserproduct = new InsertProduct();
            inserproduct.Insertproduct(naam);

            MessageBox.Show("You have added " + naam + " to the database.");
            this.Close();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
